import Vue from "vue";
import App from "./App.vue";
import "amfe-flexible";
import Vant from "vant";
import "vant/lib/index.css";
// 引入路由
import router from "./router";
import store from "./store";

import { Icon, Search, DropdownMenu, DropdownItem, Tab, Tabs ,Sidebar, SidebarItem, Grid, GridItem,Loading } from "vant";
Vue.use(Icon, Search, DropdownMenu, DropdownItem, Tab, Tabs,Sidebar, SidebarItem, Grid, GridItem,Loading );
// 注册全局组件
import tabbar from "@/components/tabbar";

//引入表单验证问题
import "@/utils/validate";
// 引入路由守卫
import "./permission";
Vue.component(tabbar.name, tabbar);
Vue.use(Vant);
Vue.config.productionTip = false;
new Vue({
  beforeCreate() {
    //全局事件总线配置
    Vue.prototype.$bus = this;
  },
  render: (h) => h(App),
  router,
  store,
}).$mount("#app");
